<?php /* Smarty version Smarty-3.0.7, created on 2011-08-23 12:46:06
         compiled from "modules/processhistory\processhistory.tpl" */ ?>
<?php /*%%SmartyHeaderCode:290794e5384ee28e5e7-15563550%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '83d6d91522bb428dd80e42fb0fd8fcb731731f70' => 
    array (
      0 => 'modules/processhistory\\processhistory.tpl',
      1 => 1314096353,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '290794e5384ee28e5e7-15563550',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<body id="iframe_body">
	<div id="modal" style="display:none; position:absolute; background-color:black; opacity:.3; filter:alpha(opacity=30); left:0px; top:0px; width:100%; height:100%;z-index:1"></div>
	<div id="iframe_content">
		<!--div class="pagetitle textcenter"><span class="pagetitle"><?php echo $_smarty_tpl->getVariable('title')->value;?>
</span></div-->
		<!--div class="filtertitle modulbody"><?php echo $_smarty_tpl->getVariable('title')->value;?>
</div>
		<div class="textcenter modulbody"><?php echo $_smarty_tpl->getVariable('banknum')->value;?>
</div-->
		<?php echo $_smarty_tpl->getVariable('historybankaccountgrid')->value;?>

		<?php echo $_smarty_tpl->getVariable('historyitemgrid')->value;?>

		<?php echo $_smarty_tpl->getVariable('historydetailform')->value;?>

		<?php echo $_smarty_tpl->getVariable('historytransfergrid')->value;?>

		<?php echo $_smarty_tpl->getVariable('destinationbankfilter')->value;?>

		<div id="processhistory_newpartner_div" class="hide">
			<div class="form_body">
				<div class="textcenter filtertitle">New partner</div>
					<div class="textcenter">
						<?php  $_smarty_tpl->tpl_vars['pt'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('partnertypes')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['pt']->key => $_smarty_tpl->tpl_vars['pt']->value){
?>
							<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['pt']->value['name'];?>
" onclick="newpartnerform.show({rowid : -1, partnername : $('fe_partnername').value, partnertype : '<?php echo $_smarty_tpl->tpl_vars['pt']->value['partnertype'];?>
', tabletype : '<?php echo $_smarty_tpl->tpl_vars['pt']->value['tabletype'];?>
'})"/>
						<?php }} ?>
					</div>
			</div>
		</div>
		<?php echo $_smarty_tpl->getVariable('newpartnerform')->value;?>

		<?php echo $_smarty_tpl->getVariable('historyimpositiongrid')->value;?>

		<div class="modulbtn" style="margin-top: -10px;">
			<input type="button" class="modulbtn" onclick="sourcebankfilter_filter.show();createhistoryimpositionform.show();" value="<?php echo $_smarty_tpl->getVariable('btncreateimpositiontitle')->value;?>
" />
		</div>
		<br />
		<?php echo $_smarty_tpl->getVariable('sourcebankfilter')->value;?>

		<?php echo $_smarty_tpl->getVariable('createhistoryimpositionform')->value;?>

		<?php echo $_smarty_tpl->getVariable('historyimptransfergrid')->value;?>

		<?php echo $_smarty_tpl->getVariable('createhistorytransferform')->value;?>

	</div>
	<script>
		createhistoryimpositionform.hide();
		sourcebankfilter_filter.hide();
		newpartnerform.hide();
		newpartnerform.setOnSuccessScript("refreshNewPartner();");
		setContentframeHeight($("iframe_body").clientHeight);
		<?php if ($_smarty_tpl->getVariable('idfromtask')->value>0){?>
			$("historybankaccountgrid_<?php echo $_smarty_tpl->getVariable('idfromtask')->value;?>
").fireEvent("click");
			historyitemgrid_grid.refresh({rowid : <?php echo $_smarty_tpl->getVariable('idfromtask')->value;?>
});
			createhistorytransferform.refresh({ rowid : <?php echo $_smarty_tpl->getVariable('idfromtask')->value;?>
, datagridname : 'historybankaccountgrid' });
		<?php }?>
	</script>
</body>
